package com.collect.cameroon.zhiScene.zhiCollection.zhiAdmin.zhiSort;

import com.collect.cameroon.zhiBean.zhiReceive.ZHIRGroupPerformanceMoneyEntity;

import java.util.Comparator;

public class ZHIAdminCompareByAmountASC implements Comparator<ZHIRGroupPerformanceMoneyEntity> {
    @Override
    public int compare(ZHIRGroupPerformanceMoneyEntity o1, ZHIRGroupPerformanceMoneyEntity o2) {
        if (o1.getRepayAmountFloat() < o2.getRepayAmountFloat()) {
            return 1;
        } else if (o1.getRepayAmountFloat() < o2.getRepayAmountFloat()) {
            return 0;
        } else {
            return -1;
        }
    }
}
